Skip to main content

defaultCursor

Type​

property

Summary​

Specifies the default shape of the cursor.

Syntax​

set the defaultCursor to <imageID>

Description​

Use the defaultCursor property to change the cursor used when the Browse tool is being used from a hand to some other cursor shape.

tip

LiveCode includes several built-in cursors whose names you can use in place of their image IDs. The built-in cursors are described in the entry for the cursor property.

If the lockCursor property is set to false, the cursor changes shape automatically as the mouse moves. (For example, the cursor normally turns into an arrow over a menu, an I-beam over an editable field, and so on.) The defaultCursor is the shape used automatically when the mouse pointer is in a stack window, but not in an editable field.

Examples​

set the defaultCursor to arrow

Value​

NameTypeDescription

value

The defaultCursor is the ID of an image to use for a cursor. LiveCode looks for the specified image in the following order:

  1. The stack of the current object's behavior (if applicable)
  2. The stack of the owner of the current object's behavior (if applicable)
  3. The stack of the current object's stack's behavior (if applicable)
  4. The current object's stack
  5. The current object's stack's mainstack (if a substack)
  6. The current object's stack's mainstacks substacks
  7. The list of open stacks, in order they were loaded

keyword: default, image, field, menu

property: cursor, lockCursor, behavior, ID

glossary: property, Browse tool, mouse pointer, cursor

Compatibility and Support​

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?